package com.gupaoedu.vip.aftermodify.model.dto;

import com.gupaoedu.vip.aftermodify.model.po.MemberPO;

public class MemberDto {

    /** 主键ID */
    private Long id;
    /** 名称 */
    private String name;
    /** 年龄 */
    private int age;
    /** 电话 */
    private String tel;
    /** 住址 */
    private String address;
    /** 所在城市ID */
    private int cityId;
    /** 备注 */
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public MemberDto copy(MemberPO memberPO){
        MemberDto memberDto = new MemberDto();
        memberDto.setId(memberPO.getId());
        memberDto.setName(memberPO.getName());
        memberDto.setAge(memberPO.getAge());
        memberDto.setTel(memberPO.getTel());
        memberDto.setAddress(memberPO.getAddress());
        memberDto.setCityId(memberPO.getCityId());
        memberDto.setRemark(memberPO.getRemark());
        return memberDto;
    }
}
